<script type="text/javascript" >
    stFacebookToolbox.load_tooltip();
    stFacebookToolbox.on_submitform('#settingForm');
    jQuery("a[rel^='prettyPhoto']").prettyPhoto();

</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
                <ul class="menu_right">
                      <li  class="current">
                          <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('feed_to_tab');" id="settings">Settings</a>
                    </li>
                      <li>
                          <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('feed_categories');" id="categories"> Categories set-up</a>
                    </li>
                      <li>
                   <a href="javascript:void(0);" onclick="stFacebookToolboxcustom.loadPage('feed_statistics');" id="statistics"> Statistics tab</a>
                    </li>
                </ul>

                    <h2 class="red_color" style="padding-left:15px;">General Settings
            </h2>
                <a href="#inline_demo" rel='prettyPhoto'><img src="<?php echo $config['imagesUrl']?>info2.png" style="float:right;margin-top:-44px;" /></a>
       <form class="stform" id="settingForm" action="<?php echo admin_url('/admin.php?page=' . $config['plugin_name'] . '&action=' . $current_action) ?>" method="post" >
                <ul>
                    <li>
                        <label><?php _e('Post date', $config['plugin_name'])?>:</label>
                        <div>
                           <input <?php echo $option['date'] == '1'? 'checked':''?> title="Post date" value="1" class="" name="data[date]" id="date" type="checkbox" tabindex="7" />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label><?php _e('Author', $config['plugin_name'])?>:</label>
                        <div>
                           <input <?php echo $option['author'] == '1'? 'checked':''?> title="Author" value="1" class="" name="data[author]" id="author" type="checkbox" tabindex="7" />
                        </div>
                        <br clear="both" />
                    </li>
                     <li>
                        <label><?php _e('Excerpt', $config['plugin_name'])?>:</label>
                        <div>
                           <input <?php echo $option['excerpt'] == '1'? 'checked':''?> title="Excerpt" value="1" class="" name="data[excerpt]" id="excerpt2" type="checkbox" tabindex="7" />
                        </div>
                        <br clear="both" />
                    </li>
                     <li>
                        <label><?php _e('Hidden images', $config['plugin_name'])?>:</label>
                        <div>
                           <input <?php echo $option['images'] == '1'? 'checked':''?> title="Hidden images" value="1" class="" name="data[images]" id="images" type="checkbox" tabindex="7" />
                        </div>
                        <br clear="both" />
                    </li>
                     <li>
                        <label><?php _e('Choose language', $config['plugin_name'])?>:</label>
                        <div>
                        	<select title="Choose language" class="input login_input" id="language" name="data[language]" tabindex="2">
                               <option value="english" <?php if ($option['language'] == 'english') echo ' selected'; ?>>English</option>
                              <option value="norwegian" <?php if ($option['language'] == 'norwegian') echo ' selected'; ?>>Norwegian</option>
                            </select>
						</div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label><?php _e('Number of entries', $config['plugin_name'])?>:</label>
                        <div>
                            <input title="Number of entries" value="<?php echo $option['number'] ?>" class="" name="data[number]" id="number" type="text" tabindex="4" />
                        </div>
                        <br clear="both" />
                    </li>
                    <li>
                        <label><?php _e('By text', $config['plugin_name'])?>:</label>
                        <div>
                            <input title="By text" value="<?php echo $option['by'] ?>" class="" name="data[by]" id="by" type="text" tabindex="4" />
                        </div>
                        <br clear="both" />
                    </li>
                     <li>
                        <input type="submit" value="Save"/>
                    </li>


                </ul>
        </form>            
<div id="inline_demo" style="display:none;">
                        <span style="color: red; font-weight: bold; font-size: 11pt;">Help</span>
						<p></p>
						<table border="0" cellpadding="0" cellspacing="5" align="center" width="100%">
						<?php foreach($config['help']['facebook_feed'] as $row):?>
						<tr>
							<td style="width:230px;" valign="top">
							<?php echo $row['title'];?><span style="float:right;">:</span>
							</td>
							<td valign="top" style="padding-left:5px;">
								<?php echo $row['help'];?>
							</td>
						</tr>
						<?php endforeach;?>
			
	</table>
	</div>           
    </div>
</div>